<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table class="table table-striped dish-table">
  <thead>
  	<tr>
  		<th>ID</th>
  		<th>IMG</th>
  		<th>Name</th>
  		<th>Price</th>
  		<th> </th>
  	</tr>
  </thead>
  <tbody>
  <c:forEach var="dish" items="${dList }">
  		<tr>
  		<td class="td-padding">${dish.did }</td>
  		<td><img src="/image${dish.img}" class="merchant-cur-logo"></td>
  		<td class="td-padding">${dish.dname }</td>
  		<td class="td-padding">${dish.price }</td>
  		<td class="btn-padding">
  			<a class="btn btn-default" href="${pageContext.request.contextPath }/dish?action=preSave&did=${dish.did }" role="button">编辑</a>
  			<a class="btn btn-default" href="${pageContext.request.contextPath }/dish?action=delete&did=${dish.did }" role="button">删除</a>
  		</td>
  	</tr>
  </c:forEach>
  </tbody>
</table>

<!-- </body>
</html> -->